package com.job.siteapp.domain;

import com.job.siteapp.common.globality.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 * 热词
 * Created by Administrator on 2016-07-09-0009.
 */
@Entity
@Table(name = "site_hot_word", uniqueConstraints = {@UniqueConstraint(columnNames = "title")})
public class HotWord extends BaseEntity implements java.io.Serializable {

    /**
     * 热词标题
     */
    @Column(name = "title", updatable = false, nullable = false, unique = true, length = 10)
    private String title;

    /**
     * 热词简介
     */
    @Column(name = "word_desc")
    private String desc;

    /**
     * 热词内容
     */
    @Column(name = "content", length = 65535,columnDefinition = "text")
    private String content;

    /**
     * 来源地址
     */
    @Column(name = "source_url", length = 1000)
    private String sourceUrl;

    /**
     * 热词属性
     */
    @Column(name = "type")
    private Integer type;

    /**
     * 热词级别
     * 标示了热值
     */
    @Column(name = "level")
    private Long level;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getSourceUrl() {
        return sourceUrl;
    }

    public void setSourceUrl(String sourceUrl) {
        this.sourceUrl = sourceUrl;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Long getLevel() {
        return level;
    }

    public void setLevel(Long level) {
        this.level = level;
    }
}
